package com.rest.response;

import android.support.annotation.NonNull;

/**
 * Created by HP on 2018/10/6.
 */

public class Student implements Comparable<Student> {

    public String classId;
    public String studentId;
    public int isCheck;
    public boolean dataLegal;
    public boolean checkOther;
    public boolean checkAxis;
    public String studentName;
    public String classNameStr;
    public String notExamReason;
    //    public String odCyl;
//    public String odSph;
//    public String osCyl;
//    public String osSph;
    public String prefx;
    //名字首字母
    public String letter;
    //type 1字母  0学生
    public int type;
    public int rightLetterChoose = 0;


    public String studentSchoolDesc;
    public String birth;
    public String sex;
    // 是否已采集完：0-未采集完，1-已采集完
    public String faceImg;
    public int isFinish;

    public String pinyin;

    @Override
    public int compareTo(@NonNull Student o) {
        if ("#".equals(letter) && !"#".equals(o.letter)) {
            return 1;
        } else if (!"#".equals(letter) && "#".equals(o.letter)) {
            return -1;
        } else {
            return pinyin.compareToIgnoreCase(o.pinyin);
        }
    }
}